# -*- coding: utf-8 -*-
from odoo import models, api, fields, tools
from odoo.exceptions import UserError
import re


class performance_indicator(models.Model):

    _name = "proman.performance_indicator"
    _description = "绩效指标"
    _table = "proman_performance_indicator"
    _order = "sequence"

    sequence = fields.Integer(string="排序",translate = 0)
    name = fields.Char(string="绩效名称",help = '请输入绩效名称',required = 1,translate = 0)
    indicator_category_id = fields.Many2one(string="指标分类",comodel_name = 'proman.indicator_category',translate = 0)
    company_id = fields.Many2one(string="所属公司",comodel_name = 'res.company',default = lambda self:self.env.company,required = 1,translate = 0)
    uom_id = fields.Many2one(string="计量单位",comodel_name = 'uom.uom',translate = 0)
    memo = fields.Html(string="备注说明",translate = 0)
